package services;

import java.util.List;

import entity.OrderDetails;

public interface OrderService {
	/**
	 * 生成订单
	 */
	public int CreateOrder(int user_id,int goods_id);
	
	/**
	 * 用户查看订单
	 * @param user_id
	 * @return
	 */
	public List<OrderDetails> getOrderByid(int user_id);
	/**
	 * 修改订单状态
	 * @param user_id
	 * @param order_id
	 * @return
	 */
	public int updateOrderStatus(int user_id,int order_id);

}
